import request from '@/utils/request'

// 查询运单回单列表
export function listOrderBack(query) {
  return request({
    url: '/order/orderBack/list',
    method: 'get',
    params: query
  })
}

// 查询运单回单列表
export function listOrder(query) {
  return request({
    url: '/order/orderBack/orderList',
    method: 'get',
    params: query
  })
}

// 查询运单回单详细
export function getOrderBack(id) {
  return request({
    url: '/order/orderBack/' + id,
    method: 'get'
  })
}

export function receive(ids) {
  return request({
    url: '/order/orderBack/receive/' + ids,
    method: 'post',
  })
}

export function submit(ids) {
  return request({
    url: '/order/orderBack/submit/' + ids,
    method: 'post',
  })
}

export function uploadOrderBackImage(data) {
  return request({
    url: '/order/orderBack/uploadOrderBackImage',
    method: 'post',
    data: data
  })
}




// 新增运单回单
export function addOrderBack(data) {
  return request({
    url: '/order/orderBack',
    method: 'post',
    data: data
  })
}

// 修改运单回单
export function updateOrderBack(data) {
  return request({
    url: '/order/orderBack',
    method: 'put',
    data: data
  })
}
